/**
 * 
 */
package springbootstudy.helloworld;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author Administrator
 * 定义姓名，年龄属性
 */
public class Person1 {

	/**
	 * 不序列化输出，json窜里没有。更多请参考fastjson文档
	 */
	@JSONField(serialize=false)
	private String name;
	
	private int age;
	
	//com.alibaba.fastjson.annotation.JSONField，日期格式
	@JSONField(format="yyyy-MM-dd HH:mm")
	private Date createTime;//创建时间.
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
